import service from '@/utils/request'

const AppointItemApi = {
  addAppointItem: function(data) {
    return service.post('appointItem', data)
  },
  editAppointItem(data) {
    return service.put('appointItem', data)
  },
  updateAppointItemState(data) {
    return service.put('appointItem/updateState', data)
  },
  deleteAppointItem(data) {
    return service.delete('appointItem', {params: data })
  },
  listAppointItem(data) {
    return service.get('appointItems', {params: data })
  },
  getAppointItemInfo(data) {
    return service.get('appointItem', {params: data })
  },
  getAppointItemSelect(data) {
    return service.get('appointItemSelect', {params: data })
  },

  addItemClassify: function(data) {
    return service.post('itemClassify', data)
  },
  editItemClassify(data) {
    return service.put('itemClassify', data)
  },
  deleteItemClassify(data) {
    return service.delete('itemClassify', {params: data })
  },
  listItemClassifyTree(data) {
    return service.get('classifyTree', {params: data })
  },
  listItemClassify(data) {
    return service.get('classifyTreeTable', {params: data })
  },
  getItemClassifyInfo(data) {
    return service.get('itemClassify', {params: data })
  },



}

export default AppointItemApi
